.gkh_table_template {
  position: relative;

  &>table {
    min-width: 100%;
    table-layout: fixed;
    border-spacing: 0;

    &>tbody>tr {
      overflow: hidden;

      &>td {
        height: 24px;

        &>* {
          position: relative;
          width: 100%;
          height: 100%;
          margin: 0;
          padding: 0;
          overflow: hidden;
          text-align: inherit;
          background: inherit;
          border: 0;
          resize: none;

          &:focus {
            outline: none;
          }
        }
      }

      &>.gkh_selected {
        background-color: #e5f8fd !important;
      }

      &>.e-resize {
        cursor: e-resize;

        & * {
          cursor: e-resize;
        }
      }

      &>.n-resize {
        cursor: n-resize;

        & * {
          cursor: n-resize;
        }
      }

      .gkh-select {
        width: 100%;
      }
    }
  }

  .gkh-select {
    width: 100%;
  }
}

.gkh_right_menu {
  position: absolute;
  min-width: 150px;
  margin: 0;
  padding: 0;
  background-color: aliceblue;
  box-shadow: 0px 0px 5px #afb7b3;
  visibility: hidden;

  &>li {
    display: flex;
    justify-content: space-between;
    min-width: 100%;
    padding: 0;
    border-bottom: 1px solid rgb(231, 230, 230);
    cursor: pointer;

    &>div {
      flex: 1 1 50%;
      margin: 2px;
      padding: 2px 8px;
    }

    &>div:hover {
      background-color: rgb(197, 223, 217);
    }

    &>.disabled {
      color: #909090;
      background-color: #e1e5e4;
      cursor: no-drop;
      pointer-events: none;
    }
  }
}

.gkh_selected {
  background-color: #e5f8fd !important;
}

.gkh_text_div {
  width: 100%;
  min-height: 16px;
  position: relative;

  &>.gkh-text-height-adujst {
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    font-weight: inherit;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    letter-spacing: normal;
    word-spacing: normal;
    text-rendering: auto;
    width: 100%;
    z-index: -1;
    visibility: hidden;
  }

  &>textarea {
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    font-weight: inherit;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: inherit;
    background: inherit;
    border: 0;
    resize: none;

    &:focus {
      outline: none;
    }
  }
}

.gkh-box {
  position: relative;
}

.gkh-box-move {
  cursor: move;

  & * {
    cursor: move;
  }
}

.gkh-box-eresize {
  cursor: e-resize;

  & * {
    cursor: e-resize;
  }
}

.gkh-box-nresize {
  cursor: n-resize;

  & * {
    cursor: n-resize;
  }
}

.gkh-container {
  position: relative;
  border: 1px solid black;
  min-height: 100px;
  vertical-align: top;

  &>*:hover {
    box-shadow: #efa6a4 0px 0px 2px 1px inset;
  }

  &>.gkh_text_div {
    display: inline-block;
    width: 20%;
    min-height: 24px;
    vertical-align: top;
  }
}

.gkh-childs-border>* {
  box-shadow: 0px 0px 1px black inset;
}

.gkh-focus {
  box-shadow: #a4cfef 0px 0px 2px 1px inset !important;
}

.gkh-button {
  line-height: 1.5715;
  position: relative;
  display: inline-block;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  background-image: none;
  border: 1px solid transparent;
  box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
  font-size: 14px;
  border-radius: 2px;
  color: #1890ff;
  background: inherit;
  border-color: #c8dff5;
}

.gkh-button[disabled] {
  color: rgba(0, 0, 0, 0.25);
  background: #f5f5f5;
  border-color: #d9d9d9;
  text-shadow: none;
  box-shadow: none;
  cursor: not-allowed;
}

.gkh-button[disabled]>* {
  pointer-events: none;
}

.gkh-fieldname-div {
  display: flex;
  padding: 2px;

  &>label {
    flex-shrink: 0;
  }

  &>input {
    flex: 1 1 auto;
    height: 22px;
    border: 0;
    max-width: 120px;
    background-color: inherit;
  }

  &>input:focus-visible {
    outline: 0;
  }
}

.gkh-form {

  &>div {
    display: flex;
    flex-flow: row wrap;

    &>label {
      flex-grow: 0
    }

    &>input {
      flex: 1 1;
    }
  }
}

.gkh-table {
  min-width: 100%;
  table-layout: fixed;
  border-spacing: 0;

  & th {
    text-align: center;
  }
}